Skip to content

fix(autocomplete-valid): skip unautofillable input types without autocomplete (PAAA-1020) - #321

Open
shubham7298 wants to merge 2 commits into
mainfrom
PAAA-1020/autocomplete-range-color
Open

shubham7298 wants to merge 2 commits into
mainfrom
PAAA-1020/autocomplete-range-color

Conversation

@shubham7298

@shubham7298 shubham7298 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

autocomplete-a11y-matches (a BrowserStack addition, used by autocomplete-valid) selected range, color, week, time and datetime-local inputs even when no autocomplete attribute was authored.

Problem. These input types belong to no HTML autofill control group, so no WCAG 1.3.5 input purpose applies. A slider or colour picker without autocomplete was still judged by the rule.

Fix. The matcher skips these five types unless the author set a non-blank autocomplete. An authored value is still judged as before. The change carries the [a11y-rule-autocomplete-valid] tag comment.

Tests.

  • 11 rule-matches cases:
    • excluded: each of the five types without autocomplete, and an upper-case type with a blank autocomplete;
    • still matched: range and color with an authored autocomplete, text, date, and an unknown type="slider" (which renders as text).
  • Integration fixtures inapplicable13–inapplicable17.
  • Locally, the rule-matches run with the new tests has 15 failures before the matcher change and 9 after. The 6 new exclusion cases turn green; the other 9 are environment failures that also fail on the base commit.

Dev testing (A/B).

  • Two bundles built the same way: base da8dde2b and this branch. The only difference between them is the matcher change.
  • Each page loaded once; autocomplete-valid ran with base, then branch, then base again. The second base run must match the first, or the page is excluded.
  • 47 pages:
    • a fixture with each type, with and without autocomplete;
    • 9 frozen captures from the reported scans;
    • 37 public pages where the rule flagged at least one issue in production.
Result
Pages compared 47 (0 errors, 0 excluded)
Results removed by this branch 15, all range/color/week/time/datetime-local inputs with no or blank autocomplete (fixture 7, reported capture 1, public pages 7)
Results added or changed 0; every other element keeps the same result
Rule time, median base 18 ms, branch 14 ms

The reported range slider is no longer flagged. Genuine autocomplete-valid violations on the other pages are unchanged. Production telemetry shows the rule only in in-page scans, not in the Percy runtime.

Closes: PAAA-1020 (autocomplete part)

🤖 Generated with Claude Code

…complete

range, color, week, time and datetime-local inputs belong to no HTML
autofill control group, so no WCAG 1.3.5 input purpose applies to them.
autocomplete-a11y-matches no longer selects them unless the author set
an autocomplete attribute; an authored value is still judged as before.

Tests: 11 rule-matches cases (each type without autocomplete, and an
upper-case type with a blank autocomplete, is excluded; range and color
with an authored autocomplete, text, date and an unknown type="slider"
still match) and integration fixtures
inapplicable13-17. With the new tests, the local rule-matches run has
15 failures before the matcher change and 9 after: the 6 new cases
turn green, and the other 9 are environment failures present on the
base commit too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto (fallback from Default branch)
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML (base), Organization UI (inherited), Workspace UI (inherited); Enforced overrides: Organization
  • Review profile: ASSERTIVE
  • Plan: Enterprise
  • Run ID: 06256896-7476-4cbd-8ae6-a605b6a921cb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@shubham7298
shubham7298 marked this pull request as ready for review November 29, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants